import request from '@/utils/request'

// 查询运营指标评价列表
export function listDealIndicatorEvaluate(query) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/list',
    method: 'get',
    params: query
  })
}

// 查询运营指标评价详细
export function getDealIndicatorEvaluate(id) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/' + id,
    method: 'get'
  })
}

// 保存运营指标评价
export function saveDealIndicatorEvaluate(data) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/save',
    method: 'post',
    data: data
  })
}

// 保存运营指标分数
export function saveEvaluateScore(data) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/saveEvaluateScore',
    method: 'post',
    data: data
  })
}

// 保存运营指标评价内容
export function saveEvaluateText(data) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/saveEvaluateText',
    method: 'post',
    data: data
  })
}

// 删除运营指标评价
export function delDealIndicatorEvaluate(id) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/' + id,
    method: 'delete'
  })
}

// 查询运营指标评价详细
export function auditPage(params) {
  return request({
    url: '/indicator/dealIndicatorEvaluate/auditPage',
    method: 'get',
    params: params
  })
}
